package com.mybatis.v1;

import com.mybatis.v1.config.SpringMybatisConfig;
import com.mybatis.v1.dao.AccountMapper;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;


public class MainTest {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context
				= new AnnotationConfigApplicationContext(SpringMybatisConfig.class);

	/*	AccountServiceImpl accountService = (AccountServiceImpl) context.getBean("accountServiceImpl");
		AccountInfo accountInfo = accountService.qryById("1234562");
		System.out.println(accountInfo);*/

		AccountMapper accountMapper = (AccountMapper) context.getBean("accountMapper");

		accountMapper.qryById("11111");

	}

}
